<% @page_title = "最新活动 | 多背一公斤 - 灾后学校重建计划" %>

<% content_for :sidebar do -%>
  <h2><%= link_to "发布一个新活动", new_event_path %></h2>
  <%= render :partial => 'category', :locals => {:categories_count => @categories_count, :status => 'new'} %>
  
  <h2 class="pink">参加 &middot;&nbsp; &middot;&nbsp; &middot;&nbsp; &middot;&nbsp; &middot;&nbsp; &middot;&nbsp;<%= link_to "更多", participations_events_url, :class => 'h2l' %></h2>
  <%= render :partial => 'users_go_where', :locals => {:participations => @participations} %>
<% end -%>

<h1>活动</h1>
<h2>最新的活动 &middot;&nbsp; &middot;&nbsp; &middot;&nbsp; &middot;&nbsp; &middot;&nbsp; &middot;&nbsp;(<%= link_to "全部活动", all_events_path, :class => "h2l" %>)</h2>
<% @events.each do |event| -%>
  <%= render :partial => 'event', :object => event %>
<% end -%>
<%= will_paginate @events %>